import java.util.ArrayList;
import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String ss = scan.nextLine();
        ArrayList<String> lst = new ArrayList<>();
        int start = 0;int len = ss.length();
        while(start < len){
            if(ss.charAt(start) == '"'){
                int end = ss.indexOf('"',start+1);
                String s = ss.substring(start+1,end);
                lst.add(s);
                start = end + 2;
            }else{
                int end = ss.indexOf(" ",start+1);
                if(end == -1){
                    String s = ss.substring(start);
                    lst.add(s);
                    start = end + 1;
                    break;
                }else{
                    String s = ss.substring(start,end);
                    lst.add(s);
                    start = end + 1;
                }

            }
        }
        int num = lst.size();
        for (int i = 0; i < num; i++) {
            System.out.println(lst.get(i));
        }
    }
}
